cmake_minimum_required(VERSION 3.13)
project(huawei)
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
set(INPUT IO\ Interface/InputManager.cpp)
set(OUTPUT IO\ Interface/OutputManager.cpp)
set(IO IO\ Interface/DataManager.cpp)
set(OptMcmfPlanA optimizer_mcmf_planA/OptimizerMcmfPlanA.cpp)
add_library(FuncIO ${IO} ${OUTPUT} ${INPUT})
add_library(FuncOpt ${OptMcmfPlanA})
add_library(mcmf flow/mcmf.cpp)
add_library(maxflow flow/flow.cpp)
add_library(splay splay/splay.cpp)
include_directories(IO\ Interface)
include_directories(OptMcmfPlanA)
add_executable(CodeCraft-2022 optimizer_mcmf_planA/main.cpp)
target_link_libraries(CodeCraft-2022 FuncIO)
target_link_libraries(CodeCraft-2022 FuncOpt)
target_link_libraries(CodeCraft-2022 mcmf)
target_link_libraries(CodeCraft-2022 maxflow)
target_link_libraries(CodeCraft-2022 splay)
